home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1997 December / Internet_Info_CD-ROM_Walnut_Creek_December_1997.iso / ietf / urn / urn-archives / urn-ietf.archive.9608 / 000014_owner-urn-ietf _Thu Aug 15 14:08:55 1996.msg < prev    next >
Internet Message Format  |  1997-02-19  |  2KB

  1. Received: (from daemon@localhost) by services.bunyip.com (8.6.10/8.6.9) id OAA14133 for urn-ietf-out; Thu, 15 Aug 1996 14:08:55 -0400
  2. Received: from mocha.bunyip.com (mocha.Bunyip.Com [192.197.208.1]) by services.bunyip.com (8.6.10/8.6.9) with SMTP id OAA14119 for <urn-ietf@services.bunyip.com>; Thu, 15 Aug 1996 14:08:52 -0400
  3. Received: from acl.lanl.gov by mocha.bunyip.com with SMTP (5.65a/IDA-1.4.2b/CC-Guru-2b)
  4.         id AA13782  (mail destined for urn-ietf@services.bunyip.com); Thu, 15 Aug 96 14:08:50 -0400
  5. Received: from legiron.acl.lanl.gov (legiron.acl.lanl.gov [128.165.147.188]) by acl.lanl.gov (8.7.3/8.7.3) with SMTP id MAA07874; Thu, 15 Aug 1996 12:08:41 -0600 (MDT)
  6. Message-Id: <2.2.32.19960815181355.006a3774@acl.lanl.gov>
  7. X-Sender: rdaniel@acl.lanl.gov
  8. X-Mailer: Windows Eudora Pro Version 2.2 (32)
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset="us-ascii"
  11. Date: Thu, 15 Aug 1996 12:13:55 -0600
  12. To: Jon Knight <jon@net.lut.ac.uk>
  13. From: Ron Daniel <rdaniel@acl.lanl.gov>
  14. Subject: Re: [URN] nasty rewriting rules
  15. Cc: Harald.T.Alvestrand@uninett.no, urn-ietf@bunyip.com
  16. Sender: owner-urn-ietf@services.bunyip.com
  17. Precedence: bulk
  18. Reply-To: Ron Daniel <rdaniel@acl.lanl.gov>
  19. Errors-To: owner-urn-ietf@bunyip.com
  20.  
  21. Thus spoke Jon Knight (at least at 05:04 PM 8/15/96 +0100)
  22. >On Thu, 15 Aug 1996, Ron Daniel wrote:
  23. >> One difference is that sed-style regexps use \1 \2 etc. for inserting
  24. >> matches in substitution operations, while perl uses $1 $2 etc. 
  25. >
  26. >Perl uses \1, \2, etc for substitutions within the regexp.  The $1, $2, 
  27. >etc is so that you can use the matched parts of regexp in the following 
  28. >code.  See page 104 of "Programming in Perl" (the Camel book) for details.
  29.  
  30. Actually, that page says that \1 is only good in the pattern, and
  31. that for the replacement part of substitution operations, $1 should
  32. be used.
  33.  
  34.  
  35. Ron Daniel Jr.                       email: rdaniel@lanl.gov
  36. Advanced Computing Lab               voice: +1 505 665 0597
  37. MS B287                                fax: +1 505 665 4939
  38. Los Alamos National Laboratory        http://www.acl.lanl.gov/~rdaniel/
  39. Los Alamos, NM, USA  87545       tautology:"Conformity is very popular"
  40.